# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=game-devices-udev
pkgver=0.22
pkgrel=2
pkgdesc="udev rules for a bunch of game controllers"
url="https://codeberg.org/fabiscafe/game-devices-udev"
arch="noarch"
license="MIT"
source="$pkgname-$pkgver.tgz::https://codeberg.org/fabiscafe/game-devices-udev/archive/$pkgver.tar.gz"
builddir="$srcdir/game-devices-udev"
options="!check" # just text files

package() {
	install -Dm644 ./*.rules -t "$pkgdir"/usr/lib/udev/rules.d/
	install -Dm644 /dev/stdin "$pkgdir"/etc/modules-load.d/game-devices-udev.conf <<-EOF
	# needed for a lot of controller inputs
	uinput
	EOF
}

sha512sums="
668288c8ce8e5356aa28ba0f8af370e24c07d949da3aeb60d9b97c212a456c744e235290c8d3ff40fea0f5bcd0ac277748ddcb3250b2865aed009de10125c865  game-devices-udev-0.22.tgz
"
